<!DOCTYPE html>
<html lang="en">
	<head>
		<title>账户</title>
		<#include "../inc/header.ftl"/>
	</head>

	<body class="no-skin">

		<div class="main-container ace-save-state" id="main-container">

			<div class="main-content">
				<div class="main-content-inner">

					<div class="page-content">
						<div class="row">
							<div class="col-xs-12">
								<table id="MainGrid"></table>
                                <div id="toolbar">
                                    <div style="padding:8px">
                                        区划：<input id="cantonid" name="cantonid">
                                        <a href="#" onclick="javascript:searchInfo()" class="easyui-linkbutton" iconCls="icon-search">查 询</a>

                                    </div>
                                </div>
							</div>
						</div><!-- /.row -->
					</div><!-- /.page-content -->

                </div>
			</div><!-- /.main-content -->
		</div><!-- /.main-container -->

		<!-- basic scripts -->
		<#include "../inc/basicjs.ftl"/>

		<!-- inline scripts related to this page -->
		<script type="text/javascript">
            //列表-------------------------------------------------
			jQuery(function($) {
				// 右侧表格
				$('#MainGrid').datagrid({
					url: prefix + '/base/basedata/findBankCantonid',
                    checkbox: true,
                    pagination: true,
					fitColumns:true,
					striped: true,
					singleSelect: true,
					loadMsg: "正在加载数据，请稍后...",
					queryParams: {cantonid:''},
					columns:[[
                        { title: '账户ID',field: 'bankid',width:50},
                        { title: '账户编码',field: 'bankcode',  width: 80},
                        { title: '账号',field: 'accountcode',  width: 200},
                        { title: '账户名称',field: 'accountname',width:200},
                        { title: '开户行名称',field: 'bankname',width:200},
                        { title: '联行行号',field: 'banklinenum',width:100},
                        { title: '区划编码',field: 'cantoncode',width:100},
                        { title: '区划名称',field: 'cantonname',width: 200 }
					]],
					toolbar: '#toolbar'
				});

				$(window).resize(function() {
					$('#MainGrid').datagrid('resize');
				});
			});

            function searchInfo() {
               $('#MainGrid').datagrid('load',{
                   cantonid: $('#cantonid').val(),
               });
            }

            //---区划三级下拉框
            $('#cantonid').combotree({
                url:prefix+'/base/basedata/findUserCantonMap',
                required: true,
                width: 200
            });
        </script>
	</body>
</html>
